<?php /* Smarty version Smarty-3.1.14, created on 2014-12-11 15:13:04
         compiled from "..\templates\home\home.tpl" */ ?>
<?php /*%%SmartyHeaderCode:2850154895210c18386-57870783%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '3a8d0f2297ec4e1dda707fdc5fc3b199f56f0020' => 
    array (
      0 => '..\\templates\\home\\home.tpl',
      1 => 1416135713,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '2850154895210c18386-57870783',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'list_product' => 0,
    'product' => 0,
    'read_rand' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.14',
  'unifunc' => 'content_54895211145062_87135341',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_54895211145062_87135341')) {function content_54895211145062_87135341($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include 'C:\\wamp\\www\\shop_baby\\libraries\\smarty\\plugins\\modifier.date_format.php';
?><div id="content">
<div id="slide-wrapper">
      <ul id="slider">
       <?php  $_smarty_tpl->tpl_vars['product'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['product']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['list_product']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['product']->key => $_smarty_tpl->tpl_vars['product']->value){
$_smarty_tpl->tpl_vars['product']->_loop = true;
?>
        <li>
        <a class="image" href="/<?php echo $_smarty_tpl->tpl_vars['product']->value['category_alias'];?>
/<?php echo $_smarty_tpl->tpl_vars['product']->value['alias'];?>
.html" title="<?php echo $_smarty_tpl->tpl_vars['product']->value['title'];?>
">
          <div class="border_on_img"></div>
          <div class="content_slider">
            <p><?php echo $_smarty_tpl->tpl_vars['product']->value['name'];?>
</p>
          </div>
          
            <img src="/upload/product/<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['product']->value['day_time'],'%m-%Y');?>
/<?php echo $_smarty_tpl->tpl_vars['product']->value['image'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['product']->value['name'];?>
" /> 
          </a>
          </li>
         <?php } ?>
        
      </ul>
    </div>
    <div class="banner">
      <div><a href="specials.html"><img src="/templates/images/small-banner-green-225x161.png" alt="" title="" /></a> </div>
    </div>
    <div class="banner">
      <div><img src="/templates/images/small-banner-blue-225x161.png" alt="" title="" /> </div>
    </div>
    <div class="box">
      <div>
        <h1 class="title_module"><span>Sản phẩm mới nhất</span></h1>
        <div class="box-content">
          <?php  $_smarty_tpl->tpl_vars['product'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['product']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['list_product']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['product']->key => $_smarty_tpl->tpl_vars['product']->value){
$_smarty_tpl->tpl_vars['product']->_loop = true;
?>
          <div class="box-product"> <a class="image" href="/<?php echo $_smarty_tpl->tpl_vars['product']->value['category_alias'];?>
/<?php echo $_smarty_tpl->tpl_vars['product']->value['alias'];?>
.html" title="<?php echo $_smarty_tpl->tpl_vars['product']->value['title'];?>
">
              <input type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['product']->value['alias'];?>
" name="data[id]" />
              <input type="hidden" value="1" name="data[quantity]" /> 
          <img src="/upload/product/<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['product']->value['day_time'],'%m-%Y');?>
/<?php echo $_smarty_tpl->tpl_vars['product']->value['image'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['product']->value['name'];?>
" style="width:100%;height:200px" /> <?php if ($_smarty_tpl->tpl_vars['product']->value['price_old']!=0){?> <span class="new">Sale</span> <?php }?> </a>
            <h3 class="name"><a href="/<?php echo $_smarty_tpl->tpl_vars['product']->value['category_alias'];?>
/<?php echo $_smarty_tpl->tpl_vars['product']->value['alias'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['product']->value['title'];?>
"><?php echo $_smarty_tpl->tpl_vars['product']->value['name'];?>
</a></h3>
            <p class="wrap_price"> <?php if ($_smarty_tpl->tpl_vars['product']->value['price_old']!=0){?> <span class="price-old"><?php echo number_format($_smarty_tpl->tpl_vars['product']->value['price_old']);?>
&nbsp;VNĐ</span> <?php }?><span class="price-new" style="text-align:center !important;"><?php echo number_format($_smarty_tpl->tpl_vars['product']->value['price_new']);?>
VNĐ</span> </p>
          </div>
          <?php } ?>
        </div>
      </div>
    </div>
    <div class="clear"></div>
    <div class="box">
      <div>
        <h1 class="title_module"><span>Sản phẩm đặc biệt</span></h1>
        <div class="box-content">
         <?php  $_smarty_tpl->tpl_vars['product'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['product']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['list_product']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['product']->key => $_smarty_tpl->tpl_vars['product']->value){
$_smarty_tpl->tpl_vars['product']->_loop = true;
?>
      <form method="post" action="/orders/cart_sm.php" enctype="multipart/form-data">
          <div class="box-product"> <a class="image" href="/<?php echo $_smarty_tpl->tpl_vars['product']->value['category_alias'];?>
/<?php echo $_smarty_tpl->tpl_vars['product']->value['alias'];?>
.html" title="<?php echo $_smarty_tpl->tpl_vars['product']->value['title'];?>
"> 
                      <input type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['product']->value['alias'];?>
" name="data[id]" />
              <input type="hidden" value="1" name="data[quantity]" /> 
          <img src="/upload/product/<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['product']->value['day_time'],'%m-%Y');?>
/<?php echo $_smarty_tpl->tpl_vars['product']->value['image'];?>
" style="width:100%;height:200px" title="<?php echo $_smarty_tpl->tpl_vars['product']->value['title'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['product']->value['name'];?>
" /> <?php if ($_smarty_tpl->tpl_vars['product']->value['price_old']!=0){?><span class="new">Sale</span><?php }?> </a>
            <h3 class="name"><a href="/<?php echo $_smarty_tpl->tpl_vars['product']->value['alias'];?>
/<?php echo $_smarty_tpl->tpl_vars['product']->value['alias'];?>
/" title="<?php echo $_smarty_tpl->tpl_vars['product']->value['title'];?>
"><?php echo $_smarty_tpl->tpl_vars['product']->value['name'];?>
</a></h3>
            <p class="wrap_price"> <?php if ($_smarty_tpl->tpl_vars['product']->value['price_old']!=0){?><span class="price-old"><?php echo number_format($_smarty_tpl->tpl_vars['product']->value['price_old']);?>
&nbsp;VNĐ</span><?php }?> <span class="price-new" style="text-align:center !important;"><?php echo number_format($_smarty_tpl->tpl_vars['product']->value['price_new']);?>
VNĐ</span> </p>
            
          </div>
        </form>
          <?php } ?>
          
        </div>
      </div>
    </div>
    <div class="clear"></div>
    <div class="box">
      <div>
        <h1 class="title_module"><span>Sản phẩm nổi bật</span></h1>
        <div class="box-content">
         <?php  $_smarty_tpl->tpl_vars['product'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['product']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['list_product']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['product']->key => $_smarty_tpl->tpl_vars['product']->value){
$_smarty_tpl->tpl_vars['product']->_loop = true;
?>
             <?php if ($_smarty_tpl->tpl_vars['product']->value['highlights']==1){?>
             <form method="post" action="/orders/cart_sm.php" enctype="multipart/form-data">
              <div class="box-product"> <a class="image" href="/<?php echo $_smarty_tpl->tpl_vars['product']->value['category_alias'];?>
/<?php echo $_smarty_tpl->tpl_vars['product']->value['alias'];?>
.html" title="<?php echo $_smarty_tpl->tpl_vars['product']->value['title'];?>
"> 
              <input type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['product']->value['alias'];?>
" name="data[id]" />
              <input type="hidden" value="1" name="data[quantity]" /> 
              <img src="/upload/product/<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['product']->value['day_time'],'%m-%Y');?>
/<?php echo $_smarty_tpl->tpl_vars['product']->value['image'];?>
" style="width:100%;height:200px" alt="<?php echo $_smarty_tpl->tpl_vars['product']->value['name'];?>
" /> </a>
                <h3 class="name"><a href="/products/detail.php?id=<?php echo $_smarty_tpl->tpl_vars['product']->value['alias'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['product']->value['title'];?>
"><?php echo $_smarty_tpl->tpl_vars['product']->value['name'];?>
</a></h3>
                <p class="wrap_price"> <?php if ($_smarty_tpl->tpl_vars['product']->value['price_old']!=0){?> <span class="price-old"><?php echo number_format($_smarty_tpl->tpl_vars['product']->value['price_old']);?>
&nbsp;VNĐ</span> <?php }?><span class="price-new" style="text-align:center !important;"><?php echo number_format($_smarty_tpl->tpl_vars['product']->value['price_new']);?>
VNĐ</span> </p>
                
              </div>
              </form>
              <?php }?>
          <?php } ?>
          
          
          
          
        </div>
      </div>
    </div>
    <div class="clear"></div>
    
    <div id="carousel">
    
      <ul class="jcarousel-skin-tfc">
       <?php  $_smarty_tpl->tpl_vars['product'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['product']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['read_rand']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['product']->key => $_smarty_tpl->tpl_vars['product']->value){
$_smarty_tpl->tpl_vars['product']->_loop = true;
?>
        <li><a href="/<?php echo $_smarty_tpl->tpl_vars['product']->value['category_alias'];?>
/<?php echo $_smarty_tpl->tpl_vars['product']->value['alias'];?>
.html"><img src="/upload/product/<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['product']->value['day_time'],'%m-%Y');?>
/<?php echo $_smarty_tpl->tpl_vars['product']->value['image'];?>
" style="width:85px;height:85px" alt="<?php echo $_smarty_tpl->tpl_vars['product']->value['name'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['product']->value['title'];?>
" /></a></li>
        <?php } ?>
      </ul>
       
    </div>
   
 
  
  <!-- InstanceEndEditable -->
</div>
  
<?php }} ?>